package Parser;

/*******************************************************************************
 * Token containing a section of the stream of characters read from an HTML
 * file.
 * @author Tudor Pascu
 * @version FINAL
 *******************************************************************************/
public class Token
{
    private String token;//Contents of token.
    private String type;//Type of token.

    /***************************************************************************
     * Creates a token object containing a String and a type.
     * @param token
     * @param type
     ***************************************************************************/
    public Token(String token, String type)
    {
        this.token = token;
        this.type = type;
    }

    /***************************************************************************
     * Returns the contents of a token.
     * @return String of token.
     ***************************************************************************/
    public String getToken()
    {
        return token;
    }

    /***************************************************************************
     * Returns the type of the token.
     * @return String representing the type of a token
     ***************************************************************************/
    public String getType()
    {
        return type;
    }
}